package com.atguigu.lease.common.minio;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * projectName: com.atguigu.lease.common.minio
 *
 * @author: 赵伟风
 * description:
 */

//因为读取ioc容器的配置,你的组件也需要加入ioc容器中 1. 直接@Component    2.在哪用在哪开启
@Data
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {

   private String  endpoint;
   private String  accessKey;
   private String  secretKey;
   private String  bucketName;
}
